/*
 * File:   Size.h
 * Author: Elevator
 *
 * Created on 27 Март 2013 г., 22:11
 */

#ifndef CORE_SIZE_H
#define CORE_SIZE_H

namespace core
{

class Size
{
public:
	int Width;
	int Height;
	Size( int width, int height );
	Size( const Size& orig );

	Size operator +=(const Size& size );
	Size operator -=(const Size& size );
private:

};

inline Size operator-(const Size& v )
{
	return Size( -v.Width, -v.Height );
}

inline Size operator+(const Size& a, const Size& b )
{
	return Size( a.Width + b.Width, a.Height + b.Height );
}

inline Size operator-(const Size& a, const Size& b )
{
	return Size( a.Width - b.Width, a.Height - b.Height );
}

inline bool operator ==(const Size& a, const Size& b )
{
	return a.Width == b.Width && a.Height == b.Height;
}

inline bool operator !=(const Size& a, const Size& b )
{
	return a.Width != b.Width || a.Height != b.Height;
}
}
#endif	/* SIZE_H */

